This is an easy task.
Just use a php function and show as you like.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script type="syntaxhighlighter" class="brush: php"> | |
<?php $content = "This is an HTML Text"; | |
$content = strip_tags($content); | |
echo substr($content, 0, 200); | |
?> | |
</script> |